// import-ui组件库
import Vue from 'vue'
import './plugins/element.js'
import './assets/global.css'
// 导入mui框架样式
import './lib/mui/css/mui.css'
import './assets/iconfont/iconfont'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

// 导入axios配置文件
import axios from './axios.js'

import auth from './auth.js'
Vue.use(auth)

import createPersistedState from 'vuex-persistedstate'
Vue.use(createPersistedState)

import App from './App.vue'
import router from './router'
import store from './store'
import Toast from'./components/toast.vue'
// 导入mi
const ToastPlugin = {
  install(Vue) {
    Vue.prototype.$toast = new Vue(Toast).$mount();
    document.body.appendChild(Vue.prototype.$toast.$el);
  },
};
Vue.config.productionTip = false
Vue.use(axios)
Vue.use(ToastPlugin)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
